package com.rattkin.service.handler
{
	public class ConfigHandler
	{		
		public function parse(xml:XML):String {
			var amfUrl:String = "" + xml..channel.(@id=="amf").@endpoint;
			return amfUrl;
		}
		
		public function validate(amfUrl:String):Boolean {	
			if (amfUrl == "" || amfUrl.indexOf("http://") == -1) {		
				return false;                             				                         
			}
			
			return true;
		} 							
	}
}